<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%> 
<html>
<head>  
  <script type="text/javascript">
  function doSearch() {	 
	  grid.load({
			custom_no: $('#custom_no').val(),
			phone: $('#phone').val(),
			name: $('#name').val(),
			ins_cd: $('#ins_cd').val(),
			ins_cn_nm: $('#ins_cn_nm').val(),
			areaname: $('#areaname').val(),
			certificate_no: $('#certificate_no').val()
		});
  }
  
  function review(url){	  
	  commonDetail(url,"detail","memReviewTableId");
  }
  function detail(url){	  
	  commonDetail(url,"detail","memReviewTableId");
  }
  var grid;
  $(document).ready(function() {
	  grid = $("#memReviewTableId").jpgrid({
			url: "getMemReviewListJson.do",
			columns: [
				{title: "会员编号", field: "CUSTOM_NO",width: 150},				
				{title: "会员手机号", field: "PHONE",width: 100},				
				{title: "会员名称", field: "NAME",width: 140},
				{title: "身份证号", field: "CERTIFICATE_NO",width: 140},
				{title: "推荐人", field: "SUPCUSTOM",width: 160},
				{title: "所属机构", field: "INSNAME",width: 230},
				{title: "所属地区", field: "AREANAME",width: 120},
				{title: "审核状态", field: "REALNAME_AUDIT_ST",formatter:realAuditSt,width: 120},
				{title: "审核意见", field: "AUDIT_COMMENTS",width: 180}
			]
		});	 
  });
  
  /** 
  *审核状态转化
  0：待审核
  1：审核通过
  2：审核未通过
  3：退回修改
  9：未有审核信息
  */
  function realAuditSt(value,row){
	  if(value == '0'){
		  return "待审核";
	  }
	  if(value == '1'){
		  return "审核通过";
	  }
	  if(value == '2'){
		  return "退回修改";
	  }
	  if(value == '9'){
		  return "未有审核信息";
	  }
  }
  </script>
</head>
<body class="easyui-layout list_body">
<form id="memReviewForm" name="memReviewForm">
	<div class="list_body_north" data-options="region:'north'" border="false">
	 	<!-- 查询表单 -->
	 	<div  class="datagrid-toolbar" border="false"  >
				<span>会员编号:</span>
				<input id="custom_no" type="text" name="custom_no"  class="easyui-textbox"  >
				<span>会员手机号:</span>
				<input id="phone" type="text" name="phone"  class="easyui-textbox"  >	
				<span>会员名称:</span>
				<input id="name" type="text" name="name"  class="easyui-textbox" >	
				<span>机构编号:</span>
				<input id="ins_cd" type="text" name="ins_cd"  class="easyui-textbox"  >
				<br/>
				<span>机构名称:</span>
				<input id="ins_cn_nm" type="text" name="ins_cn_nm"  class="easyui-textbox"  >	
				<span>身份证号:</span>
				<input id="certificate_no" type="text" name="certificate_no"  class="easyui-textbox"  >
			 	<a href="#" class="easyui-linkbutton btn" iconCls="icon-search" onclick="doSearch() ">查询</a>
			 	<a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm() ">重置</a>
		</div>
		<!-- 自定义标签工具栏 -->
		<jiepos:buttonOperateTag menuCode="${menuCode}"></jiepos:buttonOperateTag>
	</div>
	<div data-options="region:'center'" border="false" class="list_body_center">
		<!-- 表格 -->
	    <table id="memReviewTableId" fit="true"></table>
    </div>
</form> 
</body>
</html>